
<template>
  <a-layout>
    <a-affix>
    <a-layout-header class="navStyle">
      <AffixNavTopVue></AffixNavTopVue>
      <!-- 导航栏组件 -->
    </a-layout-header>
    </a-affix>
    <a-layout-content style="height: 100%;">
       <!-- 主内容区 -->
      <router-view></router-view>
      
    </a-layout-content>
   
  </a-layout>
</template>


<script lang="ts">
import { defineComponent,ref,onMounted } from "@vue/runtime-core";
import AffixNavTopVue from "./components/AffixNavTop.vue";
import { getLoginStore } from "./store";

  export default defineComponent({
     components:{AffixNavTopVue},
     name:"app",
     setup(){
      const SeesionData = ref()

      onMounted(()=>{
          // 界面一加载就拿session的值
          SeesionData.value = sessionStorage.getItem('useCookies')
          getLoginStore().cookie = SeesionData.value
      })
      return{
        
      }
     }
  })
</script>

<style lang="less" scoped>
.navStyle{
   background-color: #fff;
}
</style>
